﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZK.Common
{
    /// <summary>
    /// 委托帮助类（非静态类）
    /// </summary>
    public class DelegateHelper
    {
        //车牌识别一体机
        public delegate void CameraGetCarNumDelegate(string carNum, string cameraIp);
        public static CameraGetCarNumDelegate CameraGetCarNumEvent;
        //卡号车牌号同时存在的情况
        public delegate void SetCarNumDelegate();
        public static SetCarNumDelegate SetCarNumEvent;
        //读卡器接受的数据
        public delegate void MessageReceivedEventHandler(byte[] btAryBuffer);
        public static MessageReceivedEventHandler MessageReceived;
        //mw-102n读卡器接受的数据
        public delegate void MW_102N_MessageReceivedDelegate(string cardNum);
        public static MW_102N_MessageReceivedDelegate MW_102N_MessageReceivedEvent;
        //室内读卡器接收的数据
        public delegate void MWSNMessageReceivedDelegate(string cardNum);
        public static MWSNMessageReceivedDelegate MWSNMessageReceivedEvent;
        // delegate of LingMei
        public delegate int TaskonTAudioCastEvent(int eventMsg, string parstr);
        //地磅数据委托
        public delegate void WeightDataCallbackDelegate(double weight);
        public static WeightDataCallbackDelegate WeightCallbackEvent;

        //主页自适应之后，传递当前宽高给子panel
        public delegate void SendWidthHeightDelegate(int Width, int height);
        public static SendWidthHeightDelegate SendWidthHeightEvent;

        //红外光栅 委托  InfraredGrating
        public delegate void InfraredGratingDelegate(int data);
        public static InfraredGratingDelegate InfraredGratingEvent;
    }
}
